package com.teemo.dp.factorymethod.demo3;

import com.teemo.dp.factorymethod.demo3.computer.Computer;
import com.teemo.dp.factorymethod.demo3.factory.DesktopComputerFactory;
import com.teemo.dp.factorymethod.demo3.factory.HandheldComputerFactory;
import com.teemo.dp.factorymethod.demo3.factory.LaptomComputerFactory;

/**
 * @author Teemo
 */
public class Demo {
    public static void main(String[] args) {
        DesktopComputerFactory desktopComputerFactory = new DesktopComputerFactory();
        LaptomComputerFactory laptomComputerFactory = new LaptomComputerFactory();
        HandheldComputerFactory handheldComputerFactory = new HandheldComputerFactory();

        Computer desktopComputerFactoryComputer = desktopComputerFactory.createComputer();
        Computer computer = laptomComputerFactory.createComputer();
        Computer computer1 = handheldComputerFactory.createComputer();


    }
}
